﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SaveCurrentState {
    public static class OpenDocumentHelper {

        public static void OpenDocuments(IList<string> documentPaths) {
            foreach (var documentPath in documentPaths) {
                System.Diagnostics.Process.Start(documentPath);
            }
        }

        public static bool OpenDocument(string documentPath) {
            try {
                System.Diagnostics.Process.Start(documentPath);
            } catch (Exception e) {
                return false;
            }

            return true;
        }
    }
}
